<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>操作日志</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <script src="/layui/layui.js"></script>
</head>

<body>

<table id="LogTable" lay-filter="test"></table>

<script>
    layui.use('table', function(){
        var table = layui.table;

        //第一个实例
        table.render({
            elem: '#LogTable'
            ,url: '/log/selectAll' //数据接口
            ,page: true //开启分页
            ,cols: [
                [ //表头
                {field: 'id', title: 'ID', width:60, sort: true, fixed: 'left'}
                ,{field: 'loginName', title: '登录名', width:120}
                ,{field: 'userName', title: '用户名', width:120}
                ,{field: 'ip', title: 'ip地址', width:120}
                ,{field: 'className', title: '类名', width: 400}
                ,{field: 'methodName', title: '方法名', width: 200}
                ,{field: 'params', title: '参数', width: 200}
                ,{field: 'createTime', title: '创建时间', width: 200}
            ]
            ]
        });

    });
</script>

</body>
</html>